package com.dly.blog.properties;

import com.dly.blog.content.StringContent;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/13 0:45
 */
@Data
@NoArgsConstructor
@ConfigurationProperties(prefix = UploadProperties.PREFIX)
public class UploadProperties {

    public static final String PREFIX =  StringContent.PROJECT + ".upload";

    private Minio minio;

    private Local local;

    @Data
    public static class Minio {

        private Boolean enable;

        private String endpoint;

        private String buketName;

        private String privateBuketName;

        private String accessKey;

        private String secretKey;
    }

    @Data
    public static class Local{

        private Boolean enable = true;

        private String rootPath;

        private String imagePath;

        private String imagePrivatePath;

    }

}
